import { get, post, deletes, put } from "../http";
export let handleSu = (url, params) => {
  console.log("handleSubmit");

  return post(url, params).then((res) => {
    // console.log(res);
    return res;
  });
};
export let paginat = (url, params) => {
  console.log("adduser");

  return get(url, params).then((res) => {
    // console.log(res);
    return res;
  });
};

export let deleteuser = (url, params) => {
  console.log("delete");
  return deletes(url, params).then((res) => {
    return res;
  });
};
export let updated = (url, params) => {
  console.log("updated");
  return put(url, params).then((res) => {
    return res;
  });
};
export let editu = (url, params) => {
  console.log("修改用户信息");

  return put(url, params).then((res) => {
    return res;
  });
};
